
package com.lmf.mock.starter.autoconfigure;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Mock服务核心类
 */
@Service
public class MockService {

    private final MockProperties properties;

    @Autowired
    public MockService(MockProperties properties) {
        this.properties = properties;
    }

    /**
     * 获取Mock服务配置
     */
    public MockProperties getProperties() {
        return properties;
    }

    /**
     * 检查Mock服务是否启用
     */
    public boolean isEnabled() {
        return properties.isEnabled();
    }

    /**
     * 获取Mock服务基础路径
     */
    public String getBasePath() {
        return properties.getBasePath();
    }

    /**
     * 检查管理页面是否启用
     */
    public boolean isAdminEnabled() {
        return properties.isAdminEnabled();
    }

    /**
     * 获取管理页面路径
     */
    public String getAdminPath() {
        return properties.getAdminPath();
    }
}
